﻿using GalaSoft.MvvmLight;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DeviceDebugger.Model
{
    public class StackerTasksModel : ObservableObject
    {
        private Int64 _id;
        /// <summary>
        /// ID，自增列
        /// </summary>
        public Int64 Id
        {
            get { return _id; }
            set { _id = value; RaisePropertyChanged(() => Id); }
        }

        private Int64 _stackerId;
        /// <summary>
        /// 堆垛机ID
        /// </summary>
        public Int64 StackerId
        {
            get { return _stackerId; }
            set { _stackerId = value; RaisePropertyChanged(() => StackerId); }
        }


        private string _startLocation;
        /// <summary>
        /// 开始位置
        /// </summary>
        public string StartLocation
        {
            get { return _startLocation; }
            set { _startLocation = value; RaisePropertyChanged(() => StartLocation); }
        }

        private string _endLocation;
        /// <summary>
        /// 目标位置
        /// </summary>
        public string EndLocation
        {
            get { return _endLocation; }
            set { _endLocation = value; RaisePropertyChanged(() => EndLocation); }
        }
        private bool _isAutoCreate;
        /// <summary>
        /// 是否自动生成
        /// </summary>
        public bool IsAutoCreate
        {
            get { return _isAutoCreate; }
            set { _isAutoCreate = value; RaisePropertyChanged(() => IsAutoCreate); }
        }
        private bool _isExecute;
        /// <summary>
        /// 是否执行过
        /// </summary>
        public bool IsExecute
        {
            get { return _isExecute; }
            set { _isExecute = value; RaisePropertyChanged(() => IsExecute); }
        }

        private bool _isMalfunction;
        /// <summary>
        /// 是否发生故障
        /// </summary>
        public bool IsMalfunction
        {
            get { return _isMalfunction; }
            set { _isMalfunction = value; RaisePropertyChanged(() => IsMalfunction); }
        }
    }
}
